package com.itheima.mapper;

import com.itheima.pojo.OrderForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.mapper
 * fileName :OrderFormMapper
 * creationTime :2022-11-25 16:16
 */
@Mapper
public interface OrderFormMapper {
    List<OrderForm> selectPage(@Param("beginTime")LocalDateTime beginTime,
              @Param("endTime") LocalDateTime endTime,@Param("number") String number,
              @Param("start") Integer start,@Param("pageSize") Integer pageSize);

    Integer countTotal(@Param("beginTime") LocalDateTime beginTime,
                       @Param("endTime") LocalDateTime endTime,@Param("number") String number);

    Integer changeStatus(@Param("orderForm") OrderForm orderForm);

    Integer insertOrderForm(@Param("orderForm") OrderForm orderForm);

    List<OrderForm> userSelectPage(@Param("start") Integer start, @Param("pageSize") Integer pageSize,@Param("userId")String userId);

    Integer userCounttotal(@Param("start") Integer start,@Param("pageSize") Integer pageSize);
}
